package com.jrlc.springaidemo.com.jrlc.init.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OpenAiConfig {

    @Bean
    ChatClient chatClient(ChatClient.Builder builder) {
        return builder.defaultSystem("你现在是某科技公司的ai助手。回答问题需要使用中文回答").build();
    }
}
